package cn.touna.jss.modules.custom.batch;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class CsvWriterConfig {

    private Map<String,String> fieldsMap = new HashMap<>();
    private List<String> columns = new ArrayList<>();
    private String seperator = ",";
    private boolean exportHeaders = false;
    private String nullReplacement = null;

    public void putFieldMap(String name,String path){
        fieldsMap.put(name,path);
        columns.add(name);
    }

    public List<String> getColumns() {
        return columns;
    }

    public String getSeperator() {
        return seperator;
    }

    public void setSeperator(String seperator) {
        this.seperator = seperator;
    }

    public Map<String, String> getFieldsMap() {
        return fieldsMap;
    }

    public boolean isExportHeaders() {
        return exportHeaders;
    }

    public void setExportHeaders(boolean exportHeaders) {
        this.exportHeaders = exportHeaders;
    }

    public String getNullReplacement() {
        return nullReplacement;
    }

    public void setNullReplacement(String nullReplacement) {
        this.nullReplacement = nullReplacement;
    }
}
